<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core">

<ui:composition template="templateInicial.xhtml">
	<ui:define name="header">
	    <h2>Ingreso al sistema</h2>
	</ui:define>
	<ui:define name="content">
		<h:form id="frmX">
			<h:panelGrid columns="2" style="width: 355px; ">
 
			<h:outputLabel for="result" value="Usuario: " />
			<h:inputText id="usuario" value="#{usuarioBean.usuario}" required="true"  style="width: 163px; "/>
			<h:outputLabel for="result" value="Contraseña:" />
			<h:inputSecret id="password" value="#{usuarioBean.password}" required="true"  style="width: 163px; "/>		
   			 <f:facet name="footer">
				<h:commandButton id="btnIngresar" value="Ingresar " action="#{usuarioBean.validarUsuario}" ajax="false" />
				<h:commandButton id="btnLimpiar" value="Limpiar " type="reset" ajax="false" />
    		</f:facet>
    		</h:panelGrid>
		</h:form>
	</ui:define>
	<ui:define name="footer">
		<ui:include src="pie.xhtml" />
	</ui:define>
</ui:composition>
</html>